FROM java:8
ENV PARAMS="--spring.profiles.active=dev"
ADD target/business-etl.jar /my-etl.jar
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 8116/tcp
ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /my-etl.jar $PARAMS"]